package com.offcn.entity;

public class User {
    //主键id
    private Integer uid;
    //姓名
    private String name;
    //电话
    private  String phone;
    //年龄
    private  String age;
    //性别   0为男  1 为 女
    private  Integer sex;
    //用户名
    private String username;
    //密码
    private String password;
    //启用状态 1为启用 2 为注销
    private  Integer status;
    //创建时间
    private  String createtime;
    //角色 1/管理员 2/总经理3/普通用户
    private  Integer role;
    //头像
    private  String picture;

    public User() {
    }

    public User(String username, String password) {
        this.username = username;
        this.password = password;
    }

    public User(Integer uid, String name, String phone, String age, Integer sex, String username, String password, Integer status, String createtime, Integer role, String picture) {
        this.uid = uid;
        this.name = name;
        this.phone = phone;
        this.age = age;
        this.sex = sex;
        this.username = username;
        this.password = password;
        this.status = status;
        this.createtime = createtime;
        this.role = role;
        this.picture = picture;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getCreatetime() {
        return createtime;
    }

    public void setCreatetime(String createtime) {
        this.createtime = createtime;
    }

    public Integer getRole() {
        return role;
    }

    public void setRole(Integer role) {
        this.role = role;
    }

    public String getPicture() {
        return picture;
    }

    public void setPicture(String picture) {
        this.picture = picture;
    }

    @Override
    public String toString() {
        return "User{" +
                "uid=" + uid +
                ", name='" + name + '\'' +
                ", phone='" + phone + '\'' +
                ", age='" + age + '\'' +
                ", sex=" + sex +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", status='" + status + '\'' +
                ", createtime='" + createtime + '\'' +
                ", role='" + role + '\'' +
                ", picture='" + picture + '\'' +
                '}';
    }
}
